import cs from "classnames";
import Loading from "@/components/Loading";
import DetailPageContainer from "../components/DetailPageContainer";
import BaseInfo from "./BaseInfo";
import UseRecordsList from "./UseRecordsList";
import { useLocation } from "react-router-dom";

export default () => {
	const location = useLocation();

	const detailData: any = location?.state ?? {};

	return (
		<Loading isHeight100 loading={false}>
			<DetailPageContainer>
				<BaseInfo data={detailData} />
				<UseRecordsList data={detailData} />
			</DetailPageContainer>
		</Loading>
	);
};
